<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="yar.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="yar.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.yar.html">Yar</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="yar.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <dl>
   
    <dt id="constant.yar-version">
     <strong><code>YAR_VERSION</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-client-protocol-http">
     <strong><code>YAR_CLIENT_PROTOCOL_HTTP</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-client-opt-packager">
     <strong><code>YAR_CLIENT_OPT_PACKAGER</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-client-opt-timeout">
     <strong><code>YAR_CLIENT_OPT_TIMEOUT</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-client-opt-connect-timeout">
     <strong><code>YAR_CLIENT_OPT_CONNECT_TIMEOUT</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-packager-php">
     <strong><code>YAR_PACKAGER_PHP</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-packager-json">
     <strong><code>YAR_PACKAGER_JSON</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-okey">
     <strong><code>YAR_ERR_OKEY</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-output">
     <strong><code>YAR_ERR_OUTPUT</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-transport">
     <strong><code>YAR_ERR_TRANSPORT</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-request">
     <strong><code>YAR_ERR_REQUEST</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-protocol">
     <strong><code>YAR_ERR_PROTOCOL</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-packager">
     <strong><code>YAR_ERR_PACKAGER</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.yar-err-exception">
     <strong><code>YAR_ERR_EXCEPTION</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>